package org.dashboard.shared.calendar;

import org.dashboard.shared.calendar.CalendarEvent;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 *
 * @author g36267
 */
public class CalendarInfo implements Serializable {

    private String serverURL;
    private String serverName;
    private int index;
    private boolean alive;
    private Date lastDeployDate;
    private String version;
    private List<CalendarEvent> events;
    private String dayName;

    public CalendarInfo() {
    }

    public CalendarInfo(int index, String serverName, String serverURL) {
        this.serverURL = serverURL;
        this.serverName = serverName;
        this.index = index;
    }

    public boolean isAlive() {
        return alive;
    }

    public String getName() {
        return serverName;
    }

    public int getIndex() {
        return index;
    }

    public Date getLastDeployDate() {
        return lastDeployDate;
    }

    public String getVersion() {
        return version;
    }

    public void setAlive(boolean alive) {
        this.alive = alive;
    }

    public void setLastDeployDate(Date lastDeployDate) {
        this.lastDeployDate = lastDeployDate;
    }

    public void setVersion(String version) {
        this.version = version;
    }

    public List<CalendarEvent> getEvents() {
        return events;
    }

    public void setEvents(List<CalendarEvent> events) {
        this.events = events;
    }

    public String getDayName() {
        return dayName;
    }

    public void setDayName(String dayName) {
        this.dayName = dayName;
    }

    @Override
    public String toString() {
        return "CalendarInfo{" +
                "events=" + events +
                ", dayName='" + dayName + '\'' +
                '}';
    }
}
